package com.ideaaedi.springcloud.jd.yourbiz.config;

import com.ideaaedi.springcloud.jd.commonspring.oauth2.CommonAccessDecisor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;

import javax.servlet.http.HttpServletRequest;

/**
 * 如果有需要的话，可再进一步定制鉴权逻辑
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.1.A
 */
@Slf4j
@Component("yourBizAccessDecisor")
public class YourBizAccessDecisor extends CommonAccessDecisor {
    
    @Override
    protected boolean handleNormalRequest(HttpServletRequest request, Authentication authentication) {
        return super.handleNormalRequest(request, authentication);
    }
}
